<!--#include("header.html")-->

<!--// 만약 댓글의 답을 다는 것이라면 원문 보여줌 -->
<!--@if($oSourceComment->isExists())-->
<div class="replyBox">
    <div class="replyItem">
        <div class="author"><div class="member_{$oSourceComment->getMemberSrl()}">{$oSourceComment->getNickName()}</div></div>
        <div class="date">
            {$oSourceComment->getRegdate("Y.m.d H:i")}
            <!--@if($grant->manager)-->
                ({$oSourceComment->get('ipaddress')})
            <!--@end-->
        </div>
        <div class="clear"></div>

        <div class="replyContent gap1">
            {$oSourceComment->getContent(false)}
        </div>
    </div>
</div>
<!--@end-->

<!-- 글쓰기 폼 -->
<form action="./" method="post" onsubmit="return procFilter(this, insert_comment)" class="productEditor" >
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="document_srl" value="{$oComment->get('document_srl')}" />
<input type="hidden" name="comment_srl" value="{$oComment->get('comment_srl')}" />
<input type="hidden" name="content" value="{htmlspecialchars($oComment->get('content'))}" />
<input type="hidden" name="parent_srl" value="{$oComment->get('parent_srl')}" />

<div class="productWrite commentEditor">

    <div class="userNameAndPw">
        <!--@if(!$is_logged)-->
        <label for="userName">{$lang->writer}</label>
        <input type="text" name="nick_name" value="{$oComment->get('nick_name')}" class="userName inputTypeText" id="userName"/>

        <label for="userPw">{$lang->password}</label>
        <input type="password" name="password" value="" id="userPw" class="userPw inputTypeText" />

        <label for="emailAddress">{$lang->email_address}</label>
        <input type="text" name="email_address" value="{htmlspecialchars($oComment->get('email_address'))}" id="emailAddress" class="emailAddress inputTypeText"/>

        <label for="homePage">{$lang->homepage}</label>
        <input type="text" name="homepage" value="{htmlspecialchars($oComment->get('homepage'))}" id="homePage" class="homePage inputTypeText"/>
        <!--@else-->
        <input type="checkbox" name="notify_message" value="Y" <!--@if($oComment->useNotify())-->checked="checked"<!--@end--> id="notify_message" />
        <label for="notify_message">{$lang->notify}</label>
        <!--@end-->
        <!--@if($module_info->secret=="Y")-->
        <input type="checkbox" name="is_secret" value="Y" <!--@if($oComment->isSecret())-->checked="checked"<!--@end--> id="is_secret" />
        <label for="is_secret">{$lang->secret}</label>
        <!--@end-->
    </div>

    <div class="editor">{$oComment->getEditor()}</div>
</div>

<div class="commentButton tRight">
    <span class="button {$btn_class}"><input type="button" value="{$lang->cmd_back}" onclick="location.href='{getUrl('act','')}'"/></span>
    <span class="button {$btn_class}"><input type="submit" value="{$lang->cmd_comment_registration}" accesskey="s" /></span>
</div>

</form>

<!--#include("footer.html")-->
